package ru.elifantiev.cityrouter.infrastructure.geocoding;

import android.location.Address;

import java.util.ArrayList;


public class GeocoderResult extends ArrayList<Address> {

    private int totalResults = -1;

    public void setTotalResults(int total) {
        totalResults = total;
    }

    public int getTotalResults() {
        return totalResults < 0 ? size() : totalResults;
    }
}
